package cn.com.dcsgo.controller;


import cn.com.dcsgo.model.sys.Ware;
import cn.com.dcsgo.result.Result;
import cn.com.dcsgo.service.WareService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/*
前端接口查看前端文件：
uu-preferred-front-end/uuyx-admin/src/api/sys/ware.js
*/

/**
 * <p>
 * 仓库表 前端控制器
 * </p>
 *
 * @author Dcsgo
 * @since 2025-04-01
 */
@RestController
@Api(tags = "仓库")
@RequiredArgsConstructor
@RequestMapping("admin/sys/ware")
public class WareController {
    private final WareService wareService;

    @GetMapping("findAllList")
    @ApiOperation("获取所有仓库信息")
    public Result<List<Ware>> getWareList() {
        return Result.ok(wareService.findAllList());
    }
}

